package com.xiaoqi.springcloud;

import com.qixi.rule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author Rookie Coder
 * @Description 消费者主启动类
 * @Date
 **/
@SpringBootApplication
@EnableEurekaClient // 将本服务注册到Eureka服务注册中心
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE",configuration = MyRule.class)// 采用自定义的负载均衡算法，去调用微服务
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class,args);
    }
}
